import request from '@/utils/request'

//新增接口
export const addWcCoupon = (data = {}, params = {}) => {
	return request({
		url: 'wcCoupon',
		method: 'POST',
		data,
		params
	})
}
//修改接口
export const updataWcCoupon = (data = {}, params = {}) => {
	return request({
		url: 'wcCoupon',
		method: 'PUT',
		data,
		params
	})
}
//导出接口
export const exportWcCoupon = (data = {}, params = {}) => {
	return request({
		url: 'wcCoupon/export',
		method: 'POST',
		responseType: "blob",
		data,
		params
	})
}
//查询列表接口
export const listWcCoupon = (data = {}, params = {}) => {
	return request({
		url: 'wcCoupon/list',
		method: 'GET',
		data,
		params
	})
}
//删除接口
export function deleteWcCoupon(ids) {
	return request({
		url: `wcCoupon/${ids}`,
		method: 'DELETE'
	})
}
//单查接口
export function findWcCoupon(id) {
	return request({
		url: `wcCoupon/${id}`,
		method: 'GET'
	})
}